package com.sy.core.base.controller;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 封装一个统一对象用于返回前台
 * 
 * @author chengl
 * @Date 2011-8-16
 * @version 1.0
 */
public class ResultObj {


	private List collection = new ArrayList();

	private Map<String,Object> responseMap = new HashMap<String,Object>();

	public Map<String, Object> getResponseMap() {
		return responseMap;
	}

	public void setResponseMap(Map<String, Object> responseMap) {
		this.responseMap = responseMap;
	}

	private String msg;

	private boolean success = true;

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public ResultObj() {
	}

	public List getCollection() {
		return collection;
	}

	public void setCollection(List collection) {
		this.collection = collection;
	}

	public void put(String key, Object value){
		responseMap.put(key,value);
	}

	public Object get(String key){
		return responseMap.get(key);
	}


}
